function fireClick(node){
	if ( document.createEvent ) {
		var evt = document.createEvent('MouseEvents');
		evt.initEvent('click', false, true);
		node.dispatchEvent(evt);	
	} else if( document.createEventObject ) {
		node.fireEvent('onclick') ;	
	} else if (typeof node.onclick == 'function' ) {
		node.onclick();	
	}
} 
 
 Ext.define('Triends.view.VersionPage', {
 	extend: 'Ext.Panel',
 	xtype: 'versionpage',
 	id: 'versionpage',
 	alias: 'versionpage',
 	config: {
 		fullscreen: true,
 		scrollable: false,
 		style: 'background:white',
 		layout: 'vbox',
 		width: '100%',
 		height: '100%',
 		items: [
 		{
	   		xtype: 'titlebar',
 			ui: 'light',
 			docked: 'top',
 			title: 'Version'
	   	},
 		{
 			xtype: 'panel',
 			flex:4,
 			items: [{
 				xtype: 'panel',
 				style: 'left:50%; margin-left:-90px;padding-top:30px',
 				width: 180,
 				height: 90,
 				html: '<img src="resource/images/version.png" width="180" height="90">'
 			}]
 		},
 		{
 			xtype: 'panel',
 			flex:2,
 			style: 'margin-top:10px',
 			html: '<p align="center"><font size="2">현재 버전</font></p><p align="center"><font size="6">1.0 beta</font></p>'
 		},
 		{
 			xtype: 'panel',
 			flex:2,
 			html: '<p align="center"><font size="2" color="#FFCC00">최신 버전</font></p><p align="center"><font size="6" color="#FFCC00">1.0 beta</font></p>'
 		},
 		{
 			xtype: 'panel',
 			layout: 'hbox',
 			width: '100%',
 			style: 'margin-top: 20px',
 			flex:2,
 			items: [{
 				xtype: 'panel',
 				flex: 1,
	 			html: "<p align='center'><a id='useragreement' href='http://itscreater.cafe24.com/Triends/UserAgreement.html'><font size='3'><u>이용약관</u></font></a>",
	 			listeners: {
					tap: {
						element: 'element',
						fn: function() {
							var ua = document.getElementById('useragreement');
							fireClick(ua);
						}
					}
				}
 			},
 			{
 				xtype: 'panel',
 				flex: 1,
 				style: 'margin-left:-20px',
 				html: "<p align='center'><a id='privacypolicy' href='http://itscreater.cafe24.com/Triends/PrivacyPolicy.html'><font size='3'>&nbsp;&nbsp;&nbsp;&nbsp;<u>개인정보취급방침</u></font></a></div>",
 				listeners: {
					tap: {
						element: 'element',
						fn: function() {
							var pp = document.getElementById('privacypolicy');
							fireClick(pp);
						}
					}
				}
 			}]
 		},
 		{
 			xtype: 'panel',
 			flex:1,
 			html: '<p align="center"><font size="2">ⓒ2012 S.U.D, Inc.</font></p>'
 		}]
 	}
 });
